package szf.im.server.util;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * @author shizhanfu
 */
public class NetUtil {
    public static String getIp(int port) throws UnknownHostException {
        InetAddress localHost = InetAddress.getLocalHost();
        return localHost.getHostAddress() + ":" + port;
    }
}
